cmake_minimum_required(VERSION 3.10)

include_directories($ENV{DM2016_DEV})

aux_source_directory(src SRC)

add_library(dmos SHARED ${SRC}) 

find_package(CxxTest)
if(CXXTEST_FOUND)
    include_directories(${CXXTEST_INCLUDE_DIR})
    enable_testing()
    CXXTEST_ADD_TEST(test_os test_oscommon.cpp ${CMAKE_CURRENT_SOURCE_DIR}/test/signal_handler.hxx)
	target_link_libraries(test_os dmos)
endif()